
# from Class_TaskCenter import TaskCenter
from project_init import ProjectInit
from UpdatePlat.Comparator import compare
from HandlePlat.Handler import handle


def serverrepo(url):
    update_suggestions = compare(url)
    handle(url, update_suggestions)



if __name__ == '__main__':
    ProjectInit.init()
    v10sp2_arm64_base_url = "https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/base/aarch64/"
    v10sp2_arm64_updates_url = "https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/updates/aarch64/"
    v10sp3_x86_base_url = "https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/base/x86_64/"
    v10sp3_x86_updates_url = "https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/updates/x86_64/"


    serverrepo(v10sp3_x86_base_url)
    serverrepo(v10sp3_x86_updates_url)
    serverrepo(v10sp2_arm64_base_url)
    serverrepo(v10sp2_arm64_updates_url)







